﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StoreWinform.View;

namespace StoreWinform.Controller
{
    public class MenuController
    {
        private static MenuController instance = new MenuController();
        private MenuForm FormView;

        public MenuForm GetView
        {
            get
            {
                if (this.FormView == null)
                {
                    this.FormView = new MenuForm();
                }
                return this.FormView;
            }
        }

        public static MenuController Instance
        {
            get { return MenuController.instance; }
        }

        public void ClearInstance()
        {
            instance = null;
            FormView = null;
        }
    }
}
